import { defineStore } from 'pinia'

const useCountState = defineStore('count', {
  state: () => ({
    count: 100
  }),
  getters: {
    doublerCount(state) {
      return state.count * 2
    }
  },
  actions: {
    changeCountAction(newVue: number) {
      this.count = newVue
    }
  }
})

export default useCountState
